package com.lilinling.yinzhi.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lilinling.common.utils.PageUtils;
import com.lilinling.yinzhi.user.entity.MakersEntity;
import com.lilinling.yinzhi.user.exception.MakerExsitException;
import com.lilinling.yinzhi.user.exception.MakerNameExsitException;
import com.lilinling.yinzhi.user.vo.MakerInfoVo;
import com.lilinling.yinzhi.user.vo.MakerOrderVo;

import java.util.Map;

/**
 * 制作人
 *
 * @author lichenglin
 * @email lilinling15@gmail.com
 * @date 2021-03-06 21:36:27
 */
public interface MakersService extends IService<MakersEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void checkUserIdUnique(Long userId) throws MakerExsitException;
    void checkMakerNameUnique(String makerName) throws MakerNameExsitException;

    void saveMakerInfo(Long userId,MakerInfoVo makerInfoVo);

    MakerOrderVo getMakerOrderVoByMakerId(Long makerId);
}

